#include <stdio.h>

#define ONE 1
#define TWO (1<<1)
#define THREE (1<<2)
#define FOUR (1<<3)
#define FIVE (1<<4)

void Print(int flag)
{
  if(flag & ONE)  printf("1\n");
  if(flag & TWO)  printf("2\n");
  if(flag & THREE) printf("3\n");
  if(flag & FOUR) printf("4\n");
  if(flag & FIVE) printf("5\n");
}

int main()
{
  Print(ONE);
  Print(ONE|TWO);
  Print(ONE|TWO|THREE);
  Print(ONE|TWO|THREE|FOUR);
  Print(ONE|TWO|THREE|FOUR|FIVE);
  return 0;
}






int main()
{
  char buffer[1024];
  scanf("%s",buffer);
  fgets(buffer,sizeof(buffer),stdin);
  fread(buffer,)

  fscanf(stdin,"%s",buffer);

  



  printf("")

  return 0
}
